home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
knowhow4
/
line.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1994-10-10
|
938b
|
35 lines
#include "line.h"
#include "colors.h"
#include "patterns.h"
#include "khbgi.h"
void Line::outtextxy(loc xy, char* text, int pat)
{
settextstyle(DEFAULT_FONT, HORIZ_DIR, 1);
settextjustify(LEFT_TEXT, TOP_TEXT);
bar(xy.X, xy.Y, xy.X + textwidth(text),
xy.Y + pScreenSet->standart_height + 1,
pColorSet->colors.HDR_BAK_COLOR,
pColorSet->colors.FILL_COLOR, (uchar*)pattern[pat]);
if(text)
{
setcolor(pColorSet->colors.HDR_ATTR_COLOR);
outtextat(loc(xy.X, xy.Y), text);
}
}
/////////////////////////
/*
void main()
{
if(!init_KNOW_HOW())
return;
Line l;
l.outtextxy(loc(10, 10), "Hello, World !", 16);
pColorSet->loadColorSet(1);
l.outtextxy(loc(10, 10), "Hello, World !", 16);
pColorSet->loadColorSet(2);
l.outtextxy(loc(10, 10), "Hello, World !", 16);
close_KNOW_HOW();
closegraph();
}
*/